<%@ page language="java" import="java.util.*, Data.Teachersk"
	pageEncoding="UTF-8"%>

<html>
<head>

<title>图书信息管理系统</title>

</head>

<body>


	<h3 style="margin-top: 100px; text-align: center;">显示信息</h3>
	<table style="margin: 10px auto;">

		<%
			if (request.getAttribute("i") != null) {
		%>
		<tr>
			<td><%=request.getAttribute("i")%></td>
		</tr>
		<%
			}
		%>
		<%
			if (request.getAttribute("d") != null) {
		%>
		<tr>
			<td><%=request.getAttribute("d")%></td>
		</tr>
		<%
			}
		%>
		<%
			if (request.getAttribute("u") != null) {
		%>
		<tr>
			<td><%=request.getAttribute("u")%></td>
		</tr>
		<%
			}
		%>
		<%
			if (request.getAttribute("all") != null) {
				if (request.getAttribute("all").equals("查询失败")) {
		%>
		<%=request.getAttribute("all")%>
		<%
			} else {
					List<Teachersk> list = new ArrayList<Teachersk>();
					list = (List<Teachersk>) request.getAttribute("all");
		%>
		<tr>
			<td style="width: 100px; font-size: 20px;text-align:center;">工号</td>
			<td style="width: 70px; font-size: 20px;text-align:center;">课程号</td>
		</tr>
		<%
			for (Teachersk item : list) {
		%>
		<tr>
			<td style="text-align:center;"><%=item.getT_id()%></td>
			<td style="text-align:center;"><%=item.getC_id()%></td>
		</tr>
		<%
			}
				}
		%>
		<%
			}
		%>
	</table>
</body>
</html>
